package com.magenta.maxoptra.gis;

import javax.management.openmbean.CompositeData;

/**
 * Project: MaxOptra
 * User: kaganov
 * Date: 25.02.2009 18:45:57
 * <p/>
 * Copyright (c) 1999-2007 Magenta Corporation Ltd. All Rights Reserved.
 * Magenta Technology proprietary and confidential.
 * Use is subject to license terms.
 */

public abstract class AbstractGeoSettings implements GeoSettings {
    public static final String JNDI_NAME = "GeoSettings";

    public abstract Proxy getProxy();

    public abstract void setProxy(Proxy proxy);

    public abstract String getLanguage();

    public abstract void setLanguage(String language);

//    public abstract GeocodingKey getGeocodingKey(GeocodingKeyId geocodingKeyId);
//
    public abstract GisParameters getProviderParams(GeocodingKeyId geocodingKeyId);

    public static AbstractGeoSettings from(CompositeData data) {
        return null;
    }

    public static AbstractGeoSettings getInstance(final GeoSettings settings) {
        return new BasicGeoSettings(settings);
    }
}

